package com.vip.service.admin;

import com.vip.dao.admin.domain.User;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Optional;

public interface UserService {

    Optional<User> findUserById2(Long id);

    User findUserById(Long id);

    User addUser(User user);

    User findUserByUserName(String userName);

    User findUserByUserNameAndPassword(String userName, String Password);

    List<User> findAll();

    Page<User> findAlluser(int page, int size);

    void deleteUserById(Long id);

}
